﻿#pragma once
#include <glad/glad.h>

namespace Kriko
{
    class OpenGLFrameBuffer
    {
    private:
        GLuint frameBufferID;
        class OpenGLTextureBuffer* frameTexture;
        class OpenGLRenderBuffer* renderBuffer;

        size_t width, height;
    public:
        OpenGLFrameBuffer(size_t width, size_t height);
        ~OpenGLFrameBuffer();
        
        void Bind();
        void Unbind();

        void BindTexture();
        void UnbindTexture();

        int GetFrameTexture();
    };
}
